/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package calcu.url;

/**
 *
 * @author DEOCCIDENTE
 */
public class Logaritmicas extends AbstractOperador{
    
    
    public float operar(float op1, char c){
        
        float resul=0;
        if( c=='l'){
            resul=(float) Math.log(op1);
            
        }else{
            if(c=='e'){
                resul= (float) Math.exp(op1);
            }
        }

        return resul;
        
    }

    @Override
    public float operar(float op1, float op2) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
   
}
